﻿using System;

namespace KMF.Common
{
			// "HNGIANG\\SQL2008","babo","babo@123"
			// "TUANANH","sa","123456"
	public class DTOParserFactory
    {	
		internal static DTOParser GetParser(Type dtoType)
        {
			// GetParser
			switch (dtoType.Name)
        	{
//
		    							                	            
                case "AgeDto":
                	return new DTOParserAge();                			            									
		    							                	            
                case "AttributeDto":
                	return new DTOParserAttribute();                			            									
		    							                	            
                case "AttributeCategoryDto":
                	return new DTOParserAttributeCategory();                			            									
		    							                	            
                case "AttributeProductDto":
                	return new DTOParserAttributeProduct();                			            									
		    							                	            
                case "BannerDto":
                	return new DTOParserBanner();                			            									
		    							                	            
                case "BannerImageDto":
                	return new DTOParserBannerImage();                			            									
		    							                	            
                case "CampaignDto":
                	return new DTOParserCampaign();                			            									
		    							                	            
                case "CampaignCustomerDto":
                	return new DTOParserCampaignCustomer();                			            									
		    							                	            
                case "ColorDto":
                	return new DTOParserColor();                			            									
		    							                	            
                case "ConfigDto":
                	return new DTOParserConfig();                			            									
		    							                	            
                case "ContactDto":
                	return new DTOParserContact();                			            									
		    							                	            
                case "CountryDto":
                	return new DTOParserCountry();                			            									
		    							                	            
                case "CustomerDto":
                	return new DTOParserCustomer();                			            									
		    							                	            
                case "DiscountDto":
                	return new DTOParserDiscount();                			            									
		    							                	            
                case "DiscountApplyToCategoryDto":
                	return new DTOParserDiscountApplyToCategory();                			            									
		    							                	            
                case "DiscountApplyToProductDto":
                	return new DTOParserDiscountApplyToProduct();                			            									
		    							                	            
                case "DiscountLimitationDto":
                	return new DTOParserDiscountLimitation();                			            									
		    							                	            
                case "DiscountRequirementDto":
                	return new DTOParserDiscountRequirement();                			            									
		    							                	            
                case "DiscountRequirementTypeDto":
                	return new DTOParserDiscountRequirementType();                			            									
		    							                	            
                case "DiscountTypeDto":
                	return new DTOParserDiscountType();                			            									
		    							                	            
                case "DiscountUsageHistoryDto":
                	return new DTOParserDiscountUsageHistory();                			            									
		    							                	            
                case "GiftDto":
                	return new DTOParserGift();                			            									
		    							                	            
                case "GiftApplyToCategoryDto":
                	return new DTOParserGiftApplyToCategory();                			            									
		    							                	            
                case "GiftApplyToProductDto":
                	return new DTOParserGiftApplyToProduct();                			            									
		    							                	            
                case "GiftLimitationDto":
                	return new DTOParserGiftLimitation();                			            									
		    							                	            
                case "GiftProductDto":
                	return new DTOParserGiftProduct();                			            									
		    							                	            
                case "GiftRequirementDto":
                	return new DTOParserGiftRequirement();                			            									
		    							                	            
                case "GiftRequirementTypeDto":
                	return new DTOParserGiftRequirementType();                			            									
		    							                	            
                case "GiftTypeDto":
                	return new DTOParserGiftType();                			            									
		    							                	            
                case "GiftUsageHistoryDto":
                	return new DTOParserGiftUsageHistory();                			            									
		    							                	            
                case "GoldenTimeCampainDto":
                	return new DTOParserGoldenTimeCampain();                			            									
		    							                	            
                case "GoldenTimeCusBoughtDto":
                	return new DTOParserGoldenTimeCusBought();                			            									
		    							                	            
                case "GoldenTimeProductDto":
                	return new DTOParserGoldenTimeProduct();                			            									
		    							                	            
                case "HelpDto":
                	return new DTOParserHelp();                			            									
		    							                	            
                case "HelpCategoryDto":
                	return new DTOParserHelpCategory();                			            									
		    							                	            
                case "NewsDto":
                	return new DTOParserNews();                			            									
		    							                	            
                case "NewsCategoryDto":
                	return new DTOParserNewsCategory();                			            									
		    							                	            
                case "NewsCommentDto":
                	return new DTOParserNewsComment();                			            									
		    							                	            
                case "OrderDto":
                	return new DTOParserOrder();                			            									
		    							                	            
                case "OrderDetailDto":
                	return new DTOParserOrderDetail();                			            									
		    							                	            
                case "PageDto":
                	return new DTOParserPage();                			            									
		    							                	            
                case "PositionDto":
                	return new DTOParserPosition();                			            									
		    							                	            
                case "ProductDto":
                	return new DTOParserProduct();                			            									
		    							                	            
                case "ProductBarcodeNewDto":
                	return new DTOParserProductBarcodeNew();                			            									
		    							                	            
                case "ProductCategoryDto":
                	return new DTOParserProductCategory();                			            									
		    							                	            
                case "ProductCategoryBannerDto":
                	return new DTOParserProductCategoryBanner();                			            									
		    							                	            
                case "ProductCategoryMapLinkDto":
                	return new DTOParserProductCategoryMapLink();                			            									
		    							                	            
                case "ProductCateTempMappingDto":
                	return new DTOParserProductCateTempMapping();                			            									
		    							                	            
                case "ProductCommentDto":
                	return new DTOParserProductComment();                			            									
		    							                	            
                case "ProductHotDto":
                	return new DTOParserProductHot();                			            									
		    							                	            
                case "ProductImageDto":
                	return new DTOParserProductImage();                			            									
		    							                	            
                case "ProductSizeDto":
                	return new DTOParserProductSize();                			            									
		    							                	            
                case "ProductTagDto":
                	return new DTOParserProductTag();                			            									
		    							                	            
                case "ProductTagMappingDto":
                	return new DTOParserProductTagMapping();                			            									
		    							                	            
                case "ProductTogetherDto":
                	return new DTOParserProductTogether();                			            									
		    							                	            
                case "ProductTypicalAttributeDto":
                	return new DTOParserProductTypicalAttribute();                			            									
		    							                	            
                case "ProviderDto":
                	return new DTOParserProvider();                			            									
		    							                	            
                case "RateDto":
                	return new DTOParserRate();                			            									
		    							                	            
                case "RateDetailDto":
                	return new DTOParserRateDetail();                			            									
		    							                	            
                case "RoleDto":
                	return new DTOParserRole();                			            									
		    							                	            
                case "SeasonDto":
                	return new DTOParserSeason();                			            									
		    							                	            
                case "SettingDto":
                	return new DTOParserSetting();                			            									
		    							                	            
                case "SiteMapDto":
                	return new DTOParserSiteMap();                			            									
		    							                	            
                case "SizeDto":
                	return new DTOParserSize();                			            									
		    							                	            
                case "SubCategoryTemplateDto":
                	return new DTOParserSubCategoryTemplate();                			            									
		    							                	            
                case "TagDto":
                	return new DTOParserTag();                			            									
		    							                	            
                case "TagMapDto":
                	return new DTOParserTagMap();                			            									
		    							                	            
                case "TemplateDto":
                	return new DTOParserTemplate();                			            									
		    							                	            
                case "UserDto":
                	return new DTOParserUser();                			            									
		    							                	            
                case "UserRoleDto":
                	return new DTOParserUserRole();                			            									
		    							                	            
                case "WebInfoDto":
                	return new DTOParserWebInfo();                			            									
		

		    							                	            
                case "AttrFilterDto":
                	return new DTOParserAttrFilter();                			            									
		    							                	            
                case "ColorFilterDto":
                	return new DTOParserColorFilter();                			            									
		    							                	            
                case "ColorListDto":
                	return new DTOParserColorList();                			            									
		    							                	            
                case "ContactListPaggingDto":
                	return new DTOParserContactListPagging();                			            									
		    							                	            
                case "CustomerPagingDto":
                	return new DTOParserCustomerPaging();                			            									
		    							                	            
                case "GoldenTimeProductTopListDto":
                	return new DTOParserGoldenTimeProductTopList();                			            									
		    							                	            
                case "NewsCategoryInfoDto":
                	return new DTOParserNewsCategoryInfo();                			            									
		    							                	            
                case "NewsCategoryListAdminDto":
                	return new DTOParserNewsCategoryListAdmin();                			            									
		    							                	            
                case "NewsCategoryListMenuDto":
                	return new DTOParserNewsCategoryListMenu();                			            									
		    							                	            
                case "NewsListAdminDto":
                	return new DTOParserNewsListAdmin();                			            									
		    							                	            
                case "NewsListHomeDto":
                	return new DTOParserNewsListHome();                			            									
		    							                	            
                case "NewsListOldDto":
                	return new DTOParserNewsListOld();                			            									
		    							                	            
                case "NewsTitleDto":
                	return new DTOParserNewsTitle();                			            									
		    							                	            
                case "OrderDetailProductDto":
                	return new DTOParserOrderDetailProduct();                			            									
		    							                	            
                case "OrderPagingDto":
                	return new DTOParserOrderPaging();                			            									
		    							                	            
                case "PriceFilterDto":
                	return new DTOParserPriceFilter();                			            									
		    							                	            
                case "ProductAllPagingDto":
                	return new DTOParserProductAllPaging();                			            									
		    							                	            
                case "ProductByCateTopListDto":
                	return new DTOParserProductByCateTopList();                			            									
		    							                	            
                case "ProductByCateTopListPagingDto":
                	return new DTOParserProductByCateTopListPaging();                			            									
		    							                	            
                case "ProductCategoryBannerAdminListDto":
                	return new DTOParserProductCategoryBannerAdminList();                			            									
		    							                	            
                case "ProductCategoryBannerHomeDto":
                	return new DTOParserProductCategoryBannerHome();                			            									
		    							                	            
                case "ProductCategoryBannerWidthDto":
                	return new DTOParserProductCategoryBannerWidth();                			            									
		    							                	            
                case "ProductCategoryByNameDto":
                	return new DTOParserProductCategoryByName();                			            									
		    							                	            
                case "ProductCategoryByPromotionPageDto":
                	return new DTOParserProductCategoryByPromotionPage();                			            									
		    							                	            
                case "ProductCategoryDropDto":
                	return new DTOParserProductCategoryDrop();                			            									
		    							                	            
                case "ProductCategoryGoldenTimeDtoDto":
                	return new DTOParserProductCategoryGoldenTimeDto();                			            									
		    							                	            
                case "ProductCategoryInfoDto":
                	return new DTOParserProductCategoryInfo();                			            									
		    							                	            
                case "ProductCategoryListAdminDto":
                	return new DTOParserProductCategoryListAdmin();                			            									
		    							                	            
                case "ProductCategoryMapLinkPagingDto":
                	return new DTOParserProductCategoryMapLinkPaging();                			            									
		    							                	            
                case "ProductCategoryMenuLeftDto":
                	return new DTOParserProductCategoryMenuLeft();                			            									
		    							                	            
                case "ProductCategoryOnHomeDto":
                	return new DTOParserProductCategoryOnHome();                			            									
		    							                	            
                case "ProductCategoryParentCateDto":
                	return new DTOParserProductCategoryParentCate();                			            									
		    							                	            
                case "ProductChildCateDto":
                	return new DTOParserProductChildCate();                			            									
		    							                	            
                case "ProductCommentListDto":
                	return new DTOParserProductCommentList();                			            									
		    							                	            
                case "ProductCommentListDetailDto":
                	return new DTOParserProductCommentListDetail();                			            									
		    							                	            
                case "ProductDetailDto":
                	return new DTOParserProductDetail();                			            									
		    							                	            
                case "ProductGoldenTimeListDto":
                	return new DTOParserProductGoldenTimeList();                			            									
		    							                	            
                case "ProductGoldenTimeListByCateDto":
                	return new DTOParserProductGoldenTimeListByCate();                			            									
		    							                	            
                case "ProductImageHasColorInfoDto":
                	return new DTOParserProductImageHasColorInfo();                			            									
		    							                	            
                case "ProductImageHasColorNameDto":
                	return new DTOParserProductImageHasColorName();                			            									
		    							                	            
                case "ProductListByPromotionPageDto":
                	return new DTOParserProductListByPromotionPage();                			            									
		    							                	            
                case "ProductListForPagingDto":
                	return new DTOParserProductListForPaging();                			            									
		    							                	            
                case "ProductListProviderHomeDto":
                	return new DTOParserProductListProviderHome();                			            									
		    							                	            
                case "ProductMenuHomeDto":
                	return new DTOParserProductMenuHome();                			            									
		    							                	            
                case "ProductNameListDto":
                	return new DTOParserProductNameList();                			            									
		    							                	            
                case "ProductPromotionTopListDto":
                	return new DTOParserProductPromotionTopList();                			            									
		    							                	            
                case "ProductRateByCateTopListPagingDto":
                	return new DTOParserProductRateByCateTopListPaging();                			            									
		    							                	            
                case "ProductSizeListByPidDto":
                	return new DTOParserProductSizeListByPid();                			            									
		    							                	            
                case "ProductSynViewDto":
                	return new DTOParserProductSynView();                			            									
		    							                	            
                case "ProviderCoutDto":
                	return new DTOParserProviderCout();                			            									
		    							                	            
                case "ProviderFilterDto":
                	return new DTOParserProviderFilter();                			            									
		    							                	            
                case "ProviderListDto":
                	return new DTOParserProviderList();                			            									
		    							                	            
                case "ProviderListByLetterDto":
                	return new DTOParserProviderListByLetter();                			            									
		    							                	            
                case "ProviderListCateHomeDto":
                	return new DTOParserProviderListCateHome();                			            									
		    							                	            
                case "ProviderListHotCateDto":
                	return new DTOParserProviderListHotCate();                			            									
		    							                	            
                case "ProviderListNameDto":
                	return new DTOParserProviderListName();                			            									
		    							                	            
                case "RateFilterDto":
                	return new DTOParserRateFilter();                			            									
		    							                	            
                case "SizeFilterDto":
                	return new DTOParserSizeFilter();                			            									
		    							                	            
                case "SizeListDto":
                	return new DTOParserSizeList();                			            									
		    							                	            
                case "UserPagingDto":
                	return new DTOParserUserPaging();                			            									
		    							                	            
                case "V_DiscountPromotionCateDto":
                	return new DTOParserV_DiscountPromotionCate();                			            									
		    							                	            
                case "V_DiscountPromotionProductDto":
                	return new DTOParserV_DiscountPromotionProduct();                			            									
		    							                	            
                case "V_GiftPromotionCateDto":
                	return new DTOParserV_GiftPromotionCate();                			            									
		    							                	            
                case "V_GiftPromotionProductDto":
                	return new DTOParserV_GiftPromotionProduct();                			            									
		    							                	            
                case "VCProCateTempMappingDto":
                	return new DTOParserVCProCateTempMapping();                			            									
		    							                	            
                case "ViewBannerDto":
                	return new DTOParserViewBanner();                			            									
		    							                	            
                case "ViewBannerClientDto":
                	return new DTOParserViewBannerClient();                			            									
		    							                	            
                case "ViewCateTemplatePagingDto":
                	return new DTOParserViewCateTemplatePaging();                			            									
		    							                	            
                case "ViewConfigPagingDto":
                	return new DTOParserViewConfigPaging();                			            									
		    							                	            
                case "ViewDiscountPagingDto":
                	return new DTOParserViewDiscountPaging();                			            									
		    							                	            
                case "ViewGiftPagingDto":
                	return new DTOParserViewGiftPaging();                			            									
		    							                	            
                case "ViewPositionDto":
                	return new DTOParserViewPosition();                			            									
		    							                	            
                case "ViewProductCateTempMappingDto":
                	return new DTOParserViewProductCateTempMapping();                			            									
		    							                	            
                case "ViewProductDetailDto":
                	return new DTOParserViewProductDetail();                			            									
		    							                	            
                case "ViewProductTagListDto":
                	return new DTOParserViewProductTagList();                			            									
		    							                	            
                case "ViewSubCategoryTempJoinDto":
                	return new DTOParserViewSubCategoryTempJoin();                			            									
			}
			// if we reach this point then we failed to find a matching type. Throw
            // an exception.
            throw new Exception("Unknown Type");			
		}
	}
}
